package com.xsdl.state;

import com.xsdl.state.pattern.MarioStateMachine;

public class Main {

    public static void main(String[] args) {
        MarioStateMachine stateMachine = new MarioStateMachine();
        stateMachine.obtainMushRoom();
        stateMachine.obtainFireFlower();
        System.out.println(stateMachine.getScore());
        stateMachine.meetMonster();
        System.out.println(stateMachine.getScore());
    }

}
